package com.atguigu.gulimall.search.vo;

import lombok.Data;

import java.util.List;

//封装页面所有可能传过来的条件
//catalog3Id=225&keyword=小米&sort=saleCount_asc&hasStock&
@Data
public class SearchParam {

    private String keyword;

    private Long catelog3Id;

    //saleCount_asc/skuPrice_asc/hotScore_asc
    private String sort;    //排序

    //过滤条件hasStock/skuPrice/brandId/catalog3Id/attrs
    //hasStock=0/1
    //skuPrice=1_500/_500/500_

    private Integer hasStock ; //有没有库存

    private String skuPrice;  //价格区间

    private List<Long> brandId; //品牌id

    //attrs=1_其他安卓&attr=2_5寸:6_寸
    private List<String> attrs;

    private Integer pageNum=1;

}
